package com.springweb.unit3.profile;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

import com.springweb.unit3.CompactDisc;
import com.springweb.unit3.Masonry;
import com.springweb.unit3.Revolver;

@Configuration
public class CDConfig {
	
	@Bean("masonry")
	@Profile("dav")
	public CompactDisc masonry() {
		return new Masonry();
	}
	
	@Bean("revolver")
	@Profile("prod")
	public CompactDisc revolver() {
		return new Revolver();
	}
}
